package io.renren.modules.app.dao;

import io.renren.modules.app.entity.OrdersEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.math.BigDecimal;

/**
 * 订单表
 * 
 *
 *
 * @date 2022-04-20 22:37:44
 */
@Mapper
public interface OrdersDao extends BaseMapper<OrdersEntity> {

    /**
     * 统计待返金额
     *
     * @param userId 用户id
     * @return
     */
    public BigDecimal statisticsAmountToBeRefunded(Long userId);

    /**
     * 统计今日完成订单数
     *
     * @param userId 用户id
     * @return
     */
    public Integer getTodayFinishOrder(Long userId);

}
